import request from '@/plugins/axios'

/** save Tenant */
// TODO: fix parameters
export function queryDeviceData(params) {
  return request({
    url: 'api/device/data',
    method: 'post',
    data: params
  })
}

// istar
export function queryDeviceDataIstar(params) {
  return request({
    url: 'istar/api/device/data',
    method: 'post',
    data: params
  })
}

export function queryAssetData(params) {
  return request({
    url: 'api/asset/data',
    method: 'post',
    data: params
  })
}

// api/asset/multipleData
export function queryAssetMultipleData(params) {
  return request({
    url: 'api/asset/multipleData',
    method: 'post',
    data: params
  })
}

export function queryAssetDataAndPrice(params) {
  return request({
    url: 'api/asset/dataAndPrice',
    method: 'post',
    data: params
  })
}

export function queryAssetTimeSharingData(params) {
  return request({
    url: 'api/asset/dataBySharing',
    method: 'post',
    data: params
  })
}

export function queryenergyByTimeSharing(params) {
  return request({
    url: 'api/asset/energyByTimeSharing',
    method: 'post',
    data: params
  })
}

export function queryVirtualData(params) {
  return request({
    url: 'api/virtual/data',
    method: 'post',
    data: params
  })
}

export function queryRealTimeData(params) {
  return request({
    url: 'api/device/realTime',
    method: 'post',
    data: params
  })
}
